#include <iostream>
#include <bits/stdc++.h>
#include <cstring>
#include <cstdio>
#include <stdlib.h>
#include <math.h>
using namespace std;

int main(){
	int n;
	int j;
	cin>>n;
	getchar();
	char a;
	cin>>a;
	for(int i=0;i<(n+1)/2;i++){
int j;

		if(j==0 || j==(n+1)/2-1)
		{
			for(int j=0;j<n;j++){
			cout<<a;
		}
	}
		else
		{
		cout<<a;
		for(int j=1;j<n-1;j++){
			cout<<" ";		
		}
		cout<<a;			
		}
		
		cout<<endl;

		
	}
	return 0;
}

